package com.jjyu.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("feedback")
public class Feedback {
    private int feedbackId;  // 反馈ID
    private Long userId;  // 用户ID
    private int restaurantId;  // 餐馆ID
    private String comment;  // 用户反馈
    private int rating;   // 1 到 5 之间的评分
    private LocalDateTime createdAt;  // 创建时间
    private LocalDateTime updatedAt;  // 更新时间
    private Long recommendationId;
    private String feedbackType;

    // 构造函数、Getter和Setter方法
    public Feedback() {}

    public Feedback(Long userId, Long recommendationId, int rating, String comment, String feedbackType) {
        this.userId = userId;
        this.recommendationId = recommendationId;
        this.rating = rating;
        this.comment = comment;
        this.feedbackType = feedbackType;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getRecommendationId() {
        return recommendationId;
    }

    public void setRecommendationId(Long recommendationId) {
        this.recommendationId = recommendationId;
    }

    public int getRating() {
        return rating;
    }

    public void setRating(int rating) {
        this.rating = rating;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getFeedbackType() {
        return feedbackType;
    }

    public void setFeedbackType(String feedbackType) {
        this.feedbackType = feedbackType;
    }

}